<template>
  <header class="header">
    <div class="top">
      <div class="container">
        <div class="login">
          <p>商城欢迎你!请</p>
          <router-link to="/login">登录</router-link>
          <router-link to="/register">免费注册</router-link>
        </div>
        <div class="business">
          <router-link to="/center/myorder">我的订单</router-link>
          <router-link to="/shopcart">我的购物车</router-link>
          <a href="###">我的尚品汇</a>
          <a href="###">尚品汇会员</a>
          <a href="###">企业采购</a>
          <a href="###">关注尚品汇</a>
          <a href="###">合作招商</a>
          <a href="###">商家后台</a>
        </div>
      </div>
    </div>
    <div class="bottom">
      <div class="container">
        <div class="logo">
          <router-link to="/home"><img src="./imags/logo.png" alt=""></router-link>
        </div>
        <div class="search">
          <form action="###" class="searchForm">
            <input type="text" id="autocomplete" class="input-error input-xxlarge"/>
            <button class="sui-btn btn-xlarge btn-danger" type="button">搜索</button>
          </form>
        </div>
      </div>
    </div>

  </header>
</template>

<style lang="less" scoped>
.header {
  background: white;

  .top {
    height: 30px;
    line-height: 30px;

    .container {
      display: flex;
      justify-content: space-between;
      width: @base-width;
      margin: 0 auto;
      overflow: hidden;

      .login {
        display: flex;
        align-items: center;

        > * + * {
          padding: 0 10px;

          & + a {
            border-left: 1px solid #b3aeae;
          }
        }
      }

      .business {
        > * + * {
          padding: 0 10px;

          & + a {
            border-left: 1px solid #b3aeae;
          }
        }
      }
    }
  }

  .bottom {

    .container {
      display: flex;
      justify-content: space-between;
      align-items: stretch;
      width: @base-width;
      margin: 0 auto;
      overflow: hidden;

      .search {
        .searchForm {
          overflow: hidden;

          input {
            box-sizing: border-box;
            width: 500px;
            height: 32px;
            padding: 0 4px;
            border: 2px solid #ea4a36;

            &:focus {
              outline: none;
            }
          }

          button {
            width: 50px;
            height: 32px;
            background-color: #ea4a36;
            border: none;
            color: #FFF;
            cursor: pointer;

            &:focus {
              outline: none;
            }
          }
        }
      }
    }

  }
}
</style>
<script setup>
</script>
